#include <deThread.hpp>
Public Types | |
| typedef u32(* | ThreadProc )(void *) |
| ThreadProc is the function signature for thread execution routines. | |
| typedef void(* | MessageHandler )(void) |
Public Member Functions | |
| virtual deBoolean | Start (void *parameter)=0 |
| virtual deBoolean | IsRunning ()=0 |
| Test whether the thread is executing. | |
| virtual u32 | GetReturnValue (deBoolean waitForExit=(DE_TRUE))=0 |
| virtual s32 | Release ()=0 |
| virtual void | Join (MessageHandler handler)=0 |
Protected Member Functions | |
| virtual | ~IdeThread () |
|
|
|
|
|
ThreadProc is the function signature for thread execution routines.
|
|
|
|
|
|
Retrieves the value returned by the thread execution routine. Note: if the thread has not been started or has not completed, the return value is undefined.
|
|
|
Test whether the thread is executing.
|
|
|
Wait for the target thread to finish executing, with an optional message-handler callback. If the system receives any signals for this thread while waiting for the target thread to terminate, the message handler will be executed.
|
|
|
Releases & destroys a thread. This will block until the thread completes execution. Note that the block would cause a deadlock if called from the thread being contained, so such a call will fail - the thread must be released from within another thread. |
|
|
Begin execution of the associated routine, passing in the specified parameter. This method can fail if a thread is already running or if the operating system cannot start the routine.
|
1.3-rc3